using Microsoft.AspNetCore.Mvc;
namespace WebApplication8.Controllers
{
  [Route("api/[controller]")]
  [ApiController]
  public class DefaultController : ControllerBase
  {
    [Route("/api/menu")]
    public ActionResult<object> Menus()
    {
      return new object[] {
        new {
            id = "1",
            name = "nav.home",
            url = "/",
            icon = "el-icon-menu" },
        new { id = "3", name = "nav.about", url = "/about", icon = "el-icon-menu" },
        new { id = "20", name = "nav.kitchenSink", icon = "el-icon-goods",
          children = new[] {
            new { id = "20-1", name = "nav.demo", url = "/examples", icon = "el-icon-share" },
            new { id = "20-2", name = "nav.list", url = "/examples/activity", icon = "el-icon-view" },
            new { id = "20-3", name = "nav.create", url = "/examples/activity/create", icon = "el-icon-message" },
            new { id = "20-4", name = "nav.charts", url = "/examples/charts", icon = "el-icon-picture" } } } };
    }
    [Route("/api/me")]
    public ActionResult<object> Me()
    {
      return new { User = "a" };
    }
  }
}